#!/bin/sh

NAME='halo.jar'    #想要杀死的进程
PID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}'`  #注意此shell脚本的名称，避免自杀
for id in $PID
do
	echo "$NAME pid is $id"
	kill -15 $id
	echo "killed $id"
done

